<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.10"/>
<title>sock: sock::net::NetEventHandler Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { init_search(); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">sock
   &#160;<span id="projectnumber">v0.11</span>
   </div>
   <div id="projectbrief">C++ Network Library</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.10 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="pages.html"><span>Related&#160;Pages</span></a></li>
      <li><a href="namespaces.html"><span>Namespaces</span></a></li>
      <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>Class&#160;List</span></a></li>
      <li><a href="classes.html"><span>Class&#160;Index</span></a></li>
      <li><a href="hierarchy.html"><span>Class&#160;Hierarchy</span></a></li>
      <li><a href="functions.html"><span>Class&#160;Members</span></a></li>
    </ul>
  </div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="namespacesock.html">sock</a></li><li class="navelem"><a class="el" href="namespacesock_1_1net.html">net</a></li><li class="navelem"><a class="el" href="classsock_1_1net_1_1_net_event_handler.html">NetEventHandler</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="classsock_1_1net_1_1_net_event_handler-members.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">sock::net::NetEventHandler Class Reference<span class="mlabels"><span class="mlabel">abstract</span></span></div>  </div>
</div><!--header-->
<div class="contents">

<p>网络事件处理器  
 <a href="classsock_1_1net_1_1_net_event_handler.html#details">More...</a></p>

<p><code>#include &lt;<a class="el" href="net__event__handler_8h_source.html">net_event_handler.h</a>&gt;</code></p>
<div class="dynheader">
Inheritance diagram for sock::net::NetEventHandler:</div>
<div class="dyncontent">
 <div class="center">
  <img src="classsock_1_1net_1_1_net_event_handler.png" usemap="#sock::net::NetEventHandler_map" alt=""/>
  <map id="sock::net::NetEventHandler_map" name="sock::net::NetEventHandler_map">
<area href="classsock_1_1net_1_1_tcp_acceptor.html" title="连接接收器 " alt="sock::net::TcpAcceptor" shape="rect" coords="0,112,163,136"/>
<area href="classsock_1_1net_1_1_tcp_connection.html" title="网络连接 " alt="sock::net::TcpConnection" shape="rect" coords="173,112,336,136"/>
</map>
 </div></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:acd0317842b7f54784759c09f41bdffd3"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classsock_1_1net_1_1_net_event_handler.html#acd0317842b7f54784759c09f41bdffd3">NetEventHandler</a> (void)</td></tr>
<tr class="separator:acd0317842b7f54784759c09f41bdffd3"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a502d2c94a9eb4c3ab1586fb5b22fbe12"><td class="memItemLeft" align="right" valign="top">virtual&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classsock_1_1net_1_1_net_event_handler.html#a502d2c94a9eb4c3ab1586fb5b22fbe12">~NetEventHandler</a> (void)</td></tr>
<tr class="separator:a502d2c94a9eb4c3ab1586fb5b22fbe12"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6fe4d2cffe11a7e21012eb29ed2f393d"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classsock_1_1net_1_1_net_event_handler.html#a6fe4d2cffe11a7e21012eb29ed2f393d">handleInput</a> (void)=0</td></tr>
<tr class="memdesc:a6fe4d2cffe11a7e21012eb29ed2f393d"><td class="mdescLeft">&#160;</td><td class="mdescRight">处理网络输入  <a href="#a6fe4d2cffe11a7e21012eb29ed2f393d">More...</a><br /></td></tr>
<tr class="separator:a6fe4d2cffe11a7e21012eb29ed2f393d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2a7887f74cac4207c80225e12ce91a43"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classsock_1_1net_1_1_net_event_handler.html#a2a7887f74cac4207c80225e12ce91a43">handleOutput</a> (void)=0</td></tr>
<tr class="memdesc:a2a7887f74cac4207c80225e12ce91a43"><td class="mdescLeft">&#160;</td><td class="mdescRight">处理网络输出  <a href="#a2a7887f74cac4207c80225e12ce91a43">More...</a><br /></td></tr>
<tr class="separator:a2a7887f74cac4207c80225e12ce91a43"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aaae522780e3cbf9db5756be8589f9139"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classsock_1_1net_1_1_net_event_handler.html#aaae522780e3cbf9db5756be8589f9139">handleError</a> (void)=0</td></tr>
<tr class="memdesc:aaae522780e3cbf9db5756be8589f9139"><td class="mdescLeft">&#160;</td><td class="mdescRight">处理网络错误  <a href="#aaae522780e3cbf9db5756be8589f9139">More...</a><br /></td></tr>
<tr class="separator:aaae522780e3cbf9db5756be8589f9139"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a27cc7b4bb1bdbe49694651630e446b05"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classsock_1_1net_1_1_net_event_handler.html#a27cc7b4bb1bdbe49694651630e446b05">handleClose</a> (void)=0</td></tr>
<tr class="memdesc:a27cc7b4bb1bdbe49694651630e446b05"><td class="mdescLeft">&#160;</td><td class="mdescRight">处理关闭  <a href="#a27cc7b4bb1bdbe49694651630e446b05">More...</a><br /></td></tr>
<tr class="separator:a27cc7b4bb1bdbe49694651630e446b05"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa75f2bf4bf3bcd9a83d540aca5497619"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classsock_1_1net_1_1_net_event_handler.html#aa75f2bf4bf3bcd9a83d540aca5497619">handleHeartbeat</a> (void)=0</td></tr>
<tr class="memdesc:aa75f2bf4bf3bcd9a83d540aca5497619"><td class="mdescLeft">&#160;</td><td class="mdescRight">处理心跳  <a href="#aa75f2bf4bf3bcd9a83d540aca5497619">More...</a><br /></td></tr>
<tr class="separator:aa75f2bf4bf3bcd9a83d540aca5497619"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>网络事件处理器 </p>
</div><h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
<a class="anchor" id="acd0317842b7f54784759c09f41bdffd3"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">sock::net::NetEventHandler::NetEventHandler </td>
          <td>(</td>
          <td class="paramtype">void&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<a class="anchor" id="a502d2c94a9eb4c3ab1586fb5b22fbe12"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual sock::net::NetEventHandler::~NetEventHandler </td>
          <td>(</td>
          <td class="paramtype">void&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<h2 class="groupheader">Member Function Documentation</h2>
<a class="anchor" id="a27cc7b4bb1bdbe49694651630e446b05"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual void sock::net::NetEventHandler::handleClose </td>
          <td>(</td>
          <td class="paramtype">void&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">pure virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>处理关闭 </p>

<p>Implemented in <a class="el" href="classsock_1_1net_1_1_tcp_connection.html#ad5d67c0a60a1f2c9816e550e4f110e21">sock::net::TcpConnection</a>, and <a class="el" href="classsock_1_1net_1_1_tcp_acceptor.html#aef1361f3392c7757cc0fc0a13b15163d">sock::net::TcpAcceptor</a>.</p>

</div>
</div>
<a class="anchor" id="aaae522780e3cbf9db5756be8589f9139"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual void sock::net::NetEventHandler::handleError </td>
          <td>(</td>
          <td class="paramtype">void&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">pure virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>处理网络错误 </p>

<p>Implemented in <a class="el" href="classsock_1_1net_1_1_tcp_connection.html#ab177cdd1021f1452a8b49c0238ab5186">sock::net::TcpConnection</a>, and <a class="el" href="classsock_1_1net_1_1_tcp_acceptor.html#aaff5bd626bb6e5a1ce1c972fb6faf593">sock::net::TcpAcceptor</a>.</p>

</div>
</div>
<a class="anchor" id="aa75f2bf4bf3bcd9a83d540aca5497619"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual void sock::net::NetEventHandler::handleHeartbeat </td>
          <td>(</td>
          <td class="paramtype">void&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">pure virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>处理心跳 </p>

<p>Implemented in <a class="el" href="classsock_1_1net_1_1_tcp_connection.html#a4da2739b37a3ded075a8f44a8e6ef519">sock::net::TcpConnection</a>, and <a class="el" href="classsock_1_1net_1_1_tcp_acceptor.html#afd658b58966444f446dd9b1cf747a04c">sock::net::TcpAcceptor</a>.</p>

</div>
</div>
<a class="anchor" id="a6fe4d2cffe11a7e21012eb29ed2f393d"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual void sock::net::NetEventHandler::handleInput </td>
          <td>(</td>
          <td class="paramtype">void&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">pure virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>处理网络输入 </p>

<p>Implemented in <a class="el" href="classsock_1_1net_1_1_tcp_connection.html#a7169d0396d8b3f9d3bc0bfa651c39f40">sock::net::TcpConnection</a>, and <a class="el" href="classsock_1_1net_1_1_tcp_acceptor.html#ad93eec19093d98d84aaa7f74486373f7">sock::net::TcpAcceptor</a>.</p>

</div>
</div>
<a class="anchor" id="a2a7887f74cac4207c80225e12ce91a43"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual void sock::net::NetEventHandler::handleOutput </td>
          <td>(</td>
          <td class="paramtype">void&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">pure virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>处理网络输出 </p>

<p>Implemented in <a class="el" href="classsock_1_1net_1_1_tcp_connection.html#ada4e4dc8bcdb148eef20a2b479697bbf">sock::net::TcpConnection</a>, and <a class="el" href="classsock_1_1net_1_1_tcp_acceptor.html#a8c313189b9166036e374750ddc64ea97">sock::net::TcpAcceptor</a>.</p>

</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li>E:/git/sock/sock/net/<a class="el" href="net__event__handler_8h_source.html">net_event_handler.h</a></li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.10
</small></address>
</body>
</html>
